<?xml version="1.0" encoding="utf-8"?>
<ns0:RootWorkflowActivityWithData x:Class="Microsoft.SharePoint.Workflow.ROOT" x:Name="ROOT" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ns0="clr-namespace:Microsoft.SharePoint.WorkflowActions;Assembly=Microsoft.SharePoint.WorkflowActions, Version=12.0.0.0, Culture=neutral, PublicKeyToken=null">
	<ns0:RootWorkflowActivityWithData.WorkflowFields>
		<ns0:WorkflowDataField Name="__list" Type="System.String" />
		<ns0:WorkflowDataField Name="__item" Type="System.Int32" />
		<ns0:WorkflowDataField Name="__context" Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext" />
		<ns0:WorkflowDataField Name="__initParams" Type="Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties" />
		<ns0:WorkflowDataField Name="__workflowId" Type="System.Guid" />
		<ns0:WorkflowDataField Name="InventoryID" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Int320" Type="System.Int32" />
		<ns0:WorkflowDataField Name="calc" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Double0" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int321" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Double1" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int322" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Hashtable0" Type="System.Collections.Hashtable" />
		<ns0:WorkflowDataField Name="calc1" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Double2" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int323" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Double3" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int324" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Hashtable1" Type="System.Collections.Hashtable" />
		<ns0:WorkflowDataField Name="calc2" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Double4" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int325" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Double5" Type="System.Double" />
		<ns0:WorkflowDataField Name="_x005f_Int326" Type="System.Int32" />
		<ns0:WorkflowDataField Name="_x005f_Hashtable2" Type="System.Collections.Hashtable" />
	</ns0:RootWorkflowActivityWithData.WorkflowFields>
	<ns0:OnWorkflowActivated WorkflowProperties="{ActivityBind ROOT,Path=__initParams}" x:Name="ID1">
		<ns0:OnWorkflowActivated.CorrelationToken>
			<wf0:CorrelationToken Name="refObject" OwnerActivityName="ROOT" xmlns:wf0="http://schemas.microsoft.com/winfx/2006/xaml/workflow" />
		</ns0:OnWorkflowActivated.CorrelationToken>
	</ns0:OnWorkflowActivated>
	<ns0:ApplyActivation __Context="{ActivityBind ROOT,Path=__context}" x:Name="ID2" __WorkflowProperties="{ActivityBind ROOT,Path=__initParams}" />
	<SequenceActivity x:Name="ID7" Description="Get Inventory ID">
		<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID9" FieldName="ITItem" LookupFunction="LookupInt" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
			<ns0:LookupActivity.ReturnValue>
				<ActivityBind Name="ROOT" Path="_x005f_Int320" />
			</ns0:LookupActivity.ReturnValue>
		</ns0:LookupActivity>
		<ns0:SetVariableActivity x:Name="ID8" ValueType="System.Int32">
			<ns0:SetVariableActivity.Variable>
				<ActivityBind Name="ROOT" Path="InventoryID" />
			</ns0:SetVariableActivity.Variable>
			<ns0:SetVariableActivity.Value>
				<ActivityBind Name="ROOT" Path="_x005f_Int320" />
			</ns0:SetVariableActivity.Value>
		</ns0:SetVariableActivity>
	</SequenceActivity>
	<IfElseActivity x:Name="ID4" Description="Adjust Inventory Quantity">
		<IfElseBranchActivity x:Name="ID3">
			<IfElseBranchActivity.Condition>
				<RuleConditionReference ConditionName="__Rule_ID3" />
			</IfElseBranchActivity.Condition>
			<ns0:FindValueActivity x:Name="ID13" ReturnValue="{ActivityBind ROOT,Path=_x005f_Int321}" ExternalFieldName="ID" __Context="{ActivityBind ROOT,Path=__context}" ValueType="System.Int32" ExternalListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%">
				<ns0:FindValueActivity.FindValue>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:FindValueActivity.FindValue>
			</ns0:FindValueActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%" x:Name="ID12" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=_x005f_Int321}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double0" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID14" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double1" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:MathActivity x:Name="ID11" ValueType="System.Double, mscorlib" Operator="add">
				<ns0:MathActivity.Variable>
					<ActivityBind Name="ROOT" Path="calc" />
				</ns0:MathActivity.Variable>
				<ns0:MathActivity.Operand1>
					<ActivityBind Name="ROOT" Path="_x005f_Double0" />
				</ns0:MathActivity.Operand1>
				<ns0:MathActivity.Operand2>
					<ActivityBind Name="ROOT" Path="_x005f_Double1" />
				</ns0:MathActivity.Operand2>
			</ns0:MathActivity>
			<ns0:FindValueActivity x:Name="ID15" ReturnValue="{ActivityBind ROOT,Path=_x005f_Int322}" ExternalFieldName="ID" __Context="{ActivityBind ROOT,Path=__context}" ValueType="System.Int32" ExternalListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%">
				<ns0:FindValueActivity.FindValue>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:FindValueActivity.FindValue>
			</ns0:FindValueActivity>
			<ns0:ClearHashtableActivity Collection="{ActivityBind ROOT,Path=_x005f_Hashtable0}" x:Name="ID16" />
			<ns0:AddToHashtableActivity x:Name="ID17" Collection="{ActivityBind ROOT,Path=_x005f_Hashtable0}" Key="ITQuantity" ValueType="System.Double">
				<ns0:AddToHashtableActivity.Value>
					<ActivityBind Name="ROOT" Path="calc" />
				</ns0:AddToHashtableActivity.Value>
			</ns0:AddToHashtableActivity>
			<ns0:UpdateItemActivity __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=_x005f_Int322}" ItemProperties="{ActivityBind ROOT,Path=_x005f_Hashtable0}" ListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%" x:Name="ID10" />
		</IfElseBranchActivity>
		<IfElseBranchActivity x:Name="ID18">
			<IfElseBranchActivity.Condition>
				<RuleConditionReference ConditionName="__Rule_ID18" />
			</IfElseBranchActivity.Condition>
			<ns0:FindValueActivity x:Name="ID22" ReturnValue="{ActivityBind ROOT,Path=_x005f_Int323}" ExternalFieldName="ID" __Context="{ActivityBind ROOT,Path=__context}" ValueType="System.Int32" ExternalListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%">
				<ns0:FindValueActivity.FindValue>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:FindValueActivity.FindValue>
			</ns0:FindValueActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%" x:Name="ID21" FieldName="ITQuantityOnOrder" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=_x005f_Int323}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double2" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID23" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double3" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:MathActivity x:Name="ID20" ValueType="System.Double, mscorlib" Operator="sub">
				<ns0:MathActivity.Variable>
					<ActivityBind Name="ROOT" Path="calc1" />
				</ns0:MathActivity.Variable>
				<ns0:MathActivity.Operand1>
					<ActivityBind Name="ROOT" Path="_x005f_Double2" />
				</ns0:MathActivity.Operand1>
				<ns0:MathActivity.Operand2>
					<ActivityBind Name="ROOT" Path="_x005f_Double3" />
				</ns0:MathActivity.Operand2>
			</ns0:MathActivity>
			<ns0:FindValueActivity x:Name="ID25" ReturnValue="{ActivityBind ROOT,Path=_x005f_Int324}" ExternalFieldName="ID" __Context="{ActivityBind ROOT,Path=__context}" ValueType="System.Int32" ExternalListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%">
				<ns0:FindValueActivity.FindValue>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:FindValueActivity.FindValue>
			</ns0:FindValueActivity>
			<ns0:ClearHashtableActivity Collection="{ActivityBind ROOT,Path=_x005f_Hashtable1}" x:Name="ID26" />
			<ns0:AddToHashtableActivity x:Name="ID27" Collection="{ActivityBind ROOT,Path=_x005f_Hashtable1}" Key="ITQuantityOnOrder" ValueType="System.Double">
				<ns0:AddToHashtableActivity.Value>
					<ActivityBind Name="ROOT" Path="calc1" />
				</ns0:AddToHashtableActivity.Value>
			</ns0:AddToHashtableActivity>
			<ns0:UpdateItemActivity __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=_x005f_Int324}" ItemProperties="{ActivityBind ROOT,Path=_x005f_Hashtable1}" ListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%" x:Name="ID24" />
		</IfElseBranchActivity>
		<IfElseBranchActivity x:Name="ID19">
			<IfElseBranchActivity.Condition>
				<RuleConditionReference ConditionName="__Rule_ID19" />
			</IfElseBranchActivity.Condition>
			<ns0:FindValueActivity x:Name="ID30" ReturnValue="{ActivityBind ROOT,Path=_x005f_Int325}" ExternalFieldName="ID" __Context="{ActivityBind ROOT,Path=__context}" ValueType="System.Int32" ExternalListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%">
				<ns0:FindValueActivity.FindValue>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:FindValueActivity.FindValue>
			</ns0:FindValueActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%" x:Name="ID29" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=_x005f_Int325}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double4" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:LookupActivity ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID31" FieldName="ITQuantity" LookupFunction="LookupDouble" __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}">
				<ns0:LookupActivity.ReturnValue>
					<ActivityBind Name="ROOT" Path="_x005f_Double5" />
				</ns0:LookupActivity.ReturnValue>
			</ns0:LookupActivity>
			<ns0:MathActivity x:Name="ID28" ValueType="System.Double, mscorlib" Operator="sub">
				<ns0:MathActivity.Variable>
					<ActivityBind Name="ROOT" Path="calc2" />
				</ns0:MathActivity.Variable>
				<ns0:MathActivity.Operand1>
					<ActivityBind Name="ROOT" Path="_x005f_Double4" />
				</ns0:MathActivity.Operand1>
				<ns0:MathActivity.Operand2>
					<ActivityBind Name="ROOT" Path="_x005f_Double5" />
				</ns0:MathActivity.Operand2>
			</ns0:MathActivity>
			<ns0:FindValueActivity x:Name="ID33" ReturnValue="{ActivityBind ROOT,Path=_x005f_Int326}" ExternalFieldName="ID" __Context="{ActivityBind ROOT,Path=__context}" ValueType="System.Int32" ExternalListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%">
				<ns0:FindValueActivity.FindValue>
					<ActivityBind Name="ROOT" Path="InventoryID" />
				</ns0:FindValueActivity.FindValue>
			</ns0:FindValueActivity>
			<ns0:ClearHashtableActivity Collection="{ActivityBind ROOT,Path=_x005f_Hashtable2}" x:Name="ID34" />
			<ns0:AddToHashtableActivity x:Name="ID35" Collection="{ActivityBind ROOT,Path=_x005f_Hashtable2}" Key="ITQuantity" ValueType="System.Double">
				<ns0:AddToHashtableActivity.Value>
					<ActivityBind Name="ROOT" Path="calc2" />
				</ns0:AddToHashtableActivity.Value>
			</ns0:AddToHashtableActivity>
			<ns0:UpdateItemActivity __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=_x005f_Int326}" ItemProperties="{ActivityBind ROOT,Path=_x005f_Hashtable2}" ListId="{}%TSATOK:ListId($Resources:tsa,inventoryList;)%" x:Name="ID32" />
		</IfElseBranchActivity>
	</IfElseActivity>
	<SequenceActivity x:Name="ID36" Description="Delete Transaction">
		<ns0:DeleteItemActivity __Context="{ActivityBind ROOT,Path=__context}" ListItem="{ActivityBind ROOT,Path=__item}" ListId="{}%TSATOK:ListId($Resources:tsa,transactionsList;)%" x:Name="ID37" />
	</SequenceActivity>
</ns0:RootWorkflowActivityWithData>
